// Studentdoc.cpp : Defines the entry point for the console application.
//

#include <iostream>
#include <string>
#include "Student.h"
#include "StudentRegister.h"
using namespace std;

int main()
{
	/*												//UPPG 3.1 & 3.2
	cout << "mainupp 3.1 & 3.2" << endl << endl ;

	Student S1;
	Student S2("Klas", "Eriksson", 1967);

	S2.Read();
	S1.Write();
	S1.Read();

	S2.SetFirstName("Sven");
	S2.Read();

	cout << S1.GetFirstName() << ' '<< S1.GetLastName() << ' ' << S1.GetEnrollment() << endl;
	*/

	/*                                              //UPPG 3.3
	cout << "mainupp 3.3" << endl<< endl;

	istringstream iss ("(Sven,Larsson, 1987)");
	
	Student S1;
	Student S2("Klas", "Eriksson", 1967);

	cout << S1 << endl << S2 << endl;
	iss >> S1;
	cout << S1 << endl;
	*/

	
	/*cout << "Mainuppg 3.4, 3.5 " << endl << endl;

	Student S1("Erik","Johansson", 1987);
	Student S2("Klas","Svensson", 1986);
	Student S3("Sven","Klasson", 1986);
	Student S4("Johan","Eriksson",1790);
	Student S5;

	StudentRegister SR;

	SR.Add(S1);
	SR.Add(S2);
	SR.Add(S3);
	SR.Add(S4);

	cout << SR.List()<< endl;

	S5.SetFirstName("Tore");
	S5.SetLastName("Ling");
	S5.SetEnrollment(2000);

	SR.Add(S5);

	cout << SR.List() << endl;

	SR.WriteToFile("Students.txt"); 

	cout << "Mainuppg 3.6" << endl << endl;

	

	SR.ReadfromFile("Students.txt");
	cout << SR.List() << endl;*/


	cout << "mainuppg 4" << endl << endl;


	cout << "What do you want to do?" << endl << endl;
	cout << "1: Add new student" << endl;
	cout << "2: Remove a student" << endl;
	cout << "3: Register student on course" << endl;
	cout << "4: Register Result for student" << endl;
	cout << "5: List Students" << endl;
	cout << "6: Search Student" << endl << endl;

	
	
	return 0;
}